using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class HideDo  : MonoBehaviour
{
    [SerializeField] GameObject[] targetObjects;
    
    public void Hide()
    {
        foreach (var item in targetObjects)
        {
            item.SetActive(false);
        }
    }
    
    public void ToggleDo(bool active)
    {
        foreach (var item in targetObjects)
        {
            item.SetActive(!active);
        }
    }
}
